<?php
	$aid = getRequest('aid',0);
	if(empty($aid))exit(retJson(0,'文章ID错误'));
	
	$sql = 'select `ID`,`post_content` from `'.$prefix.'_posts` where `ID`='.$aid;
	
	$con = $db->query($sql);
	
	if(count($con)<1)exit(retJson(0,'empty'));
	
	$retcon = array();
	
	$i = 0;
	
	$preg = '/style=".*?"/i';
	//$preg = '/huangzy/';
	foreach ($con as $v){
		$retcon[$i]['aid'] = $v['ID'];
		$retcon[$i++]['content'] = preg_replace($preg,'',$v['post_content']);
	}
	//echo $retcon[0]['content'];
	exit(retJson(1,$retcon));